home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 4 / Amiga Tools 4.iso / grafix / raytracing / raylab / source / platform / generic / makefile < prev   
Makefile  |  1996-01-06  |  774b  |  42 lines

  1. # Makefile for RayLab v1.0
  2. # This file is released to the public domain.
  3. #
  4. # This makefile was made for cc/gcc
  5. #
  6.  
  7. CFLAGS = -c -O3
  8. LFLAGS = -o raylab -O
  9. CC     = cc
  10. OBJ    = o
  11.  
  12. .c.o:
  13.     $(CC) $(CFLAGS) $*.c
  14.  
  15. PLATFORM = generic.$(OBJ)
  16.  
  17. OBJS   = raylab.$(OBJ) camera.$(OBJ) intersct.$(OBJ) algebra.$(OBJ) \
  18.          getworld.$(OBJ) tga.$(OBJ) texture.$(OBJ) objects.$(OBJ) \
  19.          $(PLATFORM)
  20.  
  21.  
  22. raylab: $(OBJS)
  23.     $(CC) $(LFLAGS) $(OBJS) -lm
  24.  
  25.  
  26. raylab.$(OBJ): raylab.c defs.h getworld.h tga.h
  27.  
  28. camera.$(OBJ): camera.c defs.h
  29.  
  30. intersct.$(OBJ): intersct.c defs.h extern.h
  31.  
  32. algebra.$(OBJ): algebra.c defs.h
  33.  
  34. getworld.$(OBJ): getworld.c defs.h getworld.h extern.h
  35.  
  36. tga.$(OBJ): tga.c defs.h tga.h extern.h
  37.  
  38. texture.$(OBJ): texture.c defs.h
  39.  
  40. objects.$(OBJ): objects.c defs.h extern.h
  41.  
  42.